﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Sdepci.InfoCode.Web.Includes
{
    public partial class VerifyLoginState : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // 登录状态检测
            if (Session["User"] == null)
            {
                string outstr = string.Empty;
                outstr += "<p align=\"center\">非法登录或已经超时！</p>	\n";
                outstr += "<script language='JavaScript'>	\n";
                outstr += "function tiaozhuan(){window.top.location.href='../Login.aspx';}	\n";
                outstr += "setTimeout(tiaozhuan,1500);	\n";
                outstr += "</script>	\n";
                outstr += "<p align=\"center\"><a href=\"Login.aspx\" target=\"_top\">重新登录</a></p>	\n";

                this.Response.Write(outstr);
                this.Response.End();
            }
        }
    }
}